package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_operate_bill_rule_condition")
public class OperateBillRuleConditionDo extends Model<OperateBillRuleConditionDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 条件变量
     */
    @TableField("condition_code")
    private Integer conditionCode;

    /**
     * 设置方式 0区间 1单边
     */
    @TableField("set_way")
    private Integer setWay;

    /**
     * 范围开始值 或 单边 符号值
     */
    @TableField("start_variable")
    private String startVariable;

    /**
     * 范围结束值 或 单边开始值
     */
    @TableField("end_variable")
    private String endVariable;

    @TableField("rule_id")
    private Long ruleId;

    @TableField("operate_bill_id")
    private Long operateBillId;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
